package com.ym.medical.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ym.core.utils.tkmybatis.BaseSVImpl;

import com.ym.medical.dao.NavDeptAdvDao;
import com.ym.medical.domain.entity.NavDeptAdvEntity;
import com.ym.medical.domain.param.NavDeptAdvParam;
import com.ym.medical.domain.vo.NavDeptAdvVo;
import com.ym.medical.service.INavDeptAdvSV;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * ComputerName:LAPTOP-6GI4HOI6
 * Author:625
 * Date: 2019-08-15
 * Time: 09:19:25
 * 服务实现类
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class NavDeptAdvSVImpl extends BaseSVImpl<NavDeptAdvEntity, NavDeptAdvDao> implements INavDeptAdvSV {


	@Override
	public PageInfo<NavDeptAdvVo> listPageCustomer(NavDeptAdvParam query, int pageNo, int limit) {
		PageHelper.startPage(pageNo, limit," sort_num  desc");
		List<NavDeptAdvVo> pageInfo = mapper.selectByModelCustom(query);
		return new PageInfo<>(pageInfo);
	}
}
